/**
 * @description: 文件描述
 * @version: 0.0.1
 * @author: xxx
 * @Date: 2024-09-02 17:08:41
 */
import { createRouter, createWebHistory } from 'vue-router';
const routes = [
    {
        path: '/',
        name: 'home',
        component: () => import('../view/home.vue')
    },
    {
        path: '/threeJs',
        name: 'threeJs',
        component: () => import('../view/threeJs.vue')
    },
    {
        path: '/media-test',
        name: 'media-test',
        component: () => import('../view/media-test.vue')
    },
    
]

// 创建路由器实例
const router = createRouter({
    history: createWebHistory(), // 使用 HTML5 History 模式
    routes // 路由规则
});
export default router;